import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);
//引入axios npm i axios
import axios from 'axios'
//Vue对象使用axios
Vue.prototype.axios = axios;


import { IndexBar, IndexAnchor } from 'vant-green';

Vue.use(IndexBar).use(IndexAnchor);

//导入组件库 npm i element-ui -S
import ElementUI from 'element-ui'
//导入组件相关样式
import 'element-ui/lib/theme-chalk/index.css'
//配置Vue插件 将El安装到Vue上
Vue.use(ElementUI);
import { Tabbar, TabbarItem } from 'vant-green';

Vue.use(Tabbar).use(TabbarItem);
import { Icon } from 'vant-green';

Vue.use(Icon);
import { Result } from 'vant-green';
import { Switch } from 'vant-green';


Vue.use(Switch);

import { Popup } from 'vant-green';


Vue.use(Popup);

Vue.use(Result);
import { DatetimePicker } from 'vant-green';

Vue.use(DatetimePicker);

// 引入echarts
import echarts from 'echarts';
// 将echarts挂载到Vue原型上，方便在组件中使用
Vue.prototype.$echarts = echarts;

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')